package com.itheima06;


/**
 * @author Xiao
 * @date 2021/7/18
 */
public class InnerDemo02 {
    public static void main(String[] args) {
        Outer o = new Outer();
        o.method1();
        Outer.Inner2.show2();
    }
}
class Outer {
    private class Inner1 {
        public void show1() {
            System.out.println("Inner1——show1");
        }
    }
    public void method1() {
        Inner1 i1 = new Inner1();
        i1.show1();
    }
    static class Inner2 {
        public static void show2() {
            System.out.println("Inner2——show2");
        }
    }
}
